package com.heny.demo.dbutils;

/**
 * @author litao.cc
 * @version DynamicTableProcessorEnum.java v0.1 t2025/5/5 20:02
 * @date 2025/5/5 20:02
 * @description 数据类型枚举
 */
public enum DynamicTableProcessorEnum {

    DEVICE_REAL_DATA("device_real_data", new DeviceRealDataTableNameProcessor()),
    DEVICE_HISTORY_DATA("device_history_data", new DeviceHistoryDataTableNameProcessor()),
    DEVICE_DATA_H("device_data_h", new DeviceHDataTableNameProcessor()),
    DEVICE_DATA_D("device_data_d", new DeviceDDataTableNameProcessor()),
    DEVICE_DATA_M("device_data_m", new DeviceMDataTableNameProcessor()),
    DEVICE_DATA_Y("device_data_y", new DeviceYDataTableNameProcessor()),

    // TODO 电站demo暂时先不写
    STATION_DATA_H("station_data_h", null),
    STATION_DATA_D("station_data_d", null),
    STATION_DATA_M("station_data_m", null),
    STATION_DATA_Y("station_data_y", null),
    ;

    private final String name;
    private final DynamicTableProcessor processor;


    DynamicTableProcessorEnum(String name, DynamicTableProcessor processor) {
        this.name = name;
        this.processor = processor;
    }

    public String getName() {
        return name;
    }

    public DynamicTableProcessor getProcessor() {
        return processor;
    }
}
